body{
  background: linear-gradient(to top, white 0%, white 95%, #C82519 5%, #C82519 100%);
}
/* 搜索栏 */
.search-wrap {
  position: fixed;
  overflow: hidden;
  height: 1rem;
  /* min-width: 3.2rem; */
  /* max-width: 7.5rem; */
  width: 100%;
  z-index: 999;
  background-color: #C82519;
}


.search-btn {
  position: absolute;
  top: 0;
  left: 0;
  /* width: 1rem;
  height: .44rem; */
}

.search-btn::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2rem;
  background: url(../img/s-btn.png) no-repeat;
  background-size: .4rem .4rem;
  margin: .28rem 0 0 .25rem;
}

.search {
  position: relative;
  height: .6rem;
  margin-left: .95rem;
  margin-right: .95rem;
  margin-top: .2rem;
  background-color: #fff;
  border-radius: .3rem;
}

.search-login {
  font-size: .32rem;
  position: absolute;
  top: 0;
  right: .1rem;
  color: #fff;
  line-height: 1rem;
  text-align: center;
}

.jd-icon {
  position: absolute;
  top: .15rem;
  left: .25rem;
  width: .4rem;
  height: .5rem;
  background-color: pink;
  background: url(../img/jd.png) no-repeat;
  background-size: .4rem .3rem;
}

.jd-icon::after {
  position: absolute;
  top: 0;
  right: -.18rem;
  content: "";
  display: block;
  width: .01rem;
  height: .3rem;
  background-color: #ccc;
}

.sou {
  position: absolute;
  top: .13rem;
  left: .97rem;
  width: .4rem;
  height: .4rem;
  /* 注意精灵图的二倍缩放 */
  background: url(../img/jd-sprites.png) no-repeat -3rem 0;
  background-size: 5rem 5rem;
}

/* 主体内容部分 */
/* 轮播图 */
.main-content .swiper-container {
  width: 95%;
  position: absolute;
  top: 1rem;
  left: .2rem;
  /* z-index: 1000; */
  border-radius: .1rem;
}

.main-content .swiper-container img {
  display: block;
  width: 100%;
  height: calc(100vw/3);
}

.swiper-container {
  --swiper-pagination-color: red;
}

@media all and (max-width:750px) {

  /* 媒体查询：w<=750px */
  .swiper-container {
      width: 100%;
      /* img:w=300;h=150
      100vw/h=300/150
      h=100vw/2 */
      height: calc(100vw/3);
  }
}

/* 宣传栏 */
.brand {
  padding-top: 3.5rem;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.brand div {
  float: left;
  width: 33.33%;
}
.brand div img {
  width: 100%;
}

/*
  导航区域
*/
.jd_nav{
  border-bottom: 1px solid #e0e0e0;
}

.jd_nav ul li{
  width: 20%;
  float: left;
  text-align: center;
  margin-bottom: 10px;
}

.jd_nav ul li img{
  width: 40px;
  height: 40px;
}

.jd_nav ul li p{
  color: #666;
  font-size: 13px;
}

.clearfix::before,
.clearfix::after{
    content: '.';
    height: 0;
    line-height: 0;
    display: block; /*出错点*/
    visibility: hidden;
    clear: both;
}


/* ------热门推荐区------ */
.hot_goods {
  width: 95%;
  margin-left: .2rem;
  border-radius: .2rem;
}

.hot_goods > .hot_goods_box {

  width: 100%;
}

/* 第一个秒杀区没有header */
.hot_goods > .hot_goods_box:first-child {
  margin-top: 10px;
}

.hot_goods > .hot_goods_box > .hot_goods_main_content {
  border-radius: .2rem;

  width: 100%;
  background: white;
}

.hot_goods > .hot_goods_box > .hot_goods_box_header > img {
  width: 100%;
}

.hot_goods > .hot_goods_box > .hot_goods_main_content > .hot_goods_title {
  width: 100%;
  height: 30px;
  line-height: 30px;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.hot_goods > .hot_goods_box > .hot_goods_main_content > .no_border {
  border: none;
}

.hot_goods > .hot_goods_box > .hot_goods_main_content > .hot_goods_title > h3 {
  font-weight: normal;
  font-size: 14px;
  margin-left: 20px;
  float: left;
}

.hot_goods > .hot_goods_box > .hot_goods_main_content > .hot_goods_title > .goods_leave_time {
  float: left;
  font-size: 14px;
  margin-left: 15px;
}

.hot_goods > .hot_goods_box > .hot_goods_main_content > .hot_goods_title > .goods_leave_time > span.goods_leave_time_num {
  background: #d6321c;
  line-height: 30px;
  color: #eee;
  padding-left: 2px;
  padding-right: 2px;
}

.hot_goods > .hot_goods_box > .hot_goods_main_content > .hot_goods_title > p {
  float: right;
  font-size: 14px;
  line-height: 30px;
  margin-right: 10px;
}

.hot_goods > .hot_goods_box > .hot_goods_main_content > .hot_goods_title > h3:before {
  content: "";
  width: 5px;
  height: 15px;
  display: block;
  background-color: #d6321c;
  position: absolute;
  top: 7px;
  left: 10px;
}

/* 秒杀抢购区 */

.hot_goods_content {
  width: 100%;
}

/* 秒杀区4个秒杀商品上下添加padding */
.hot_goods > .hot_goods_box:first-child > .hot_goods_main_content > .hot_goods_content {
  padding: .2rem 0;
  display: flex;  
  justify-content: center;
}

.hot_goods_content > .hot_goods_content_box {
  width: 16%;
  float: left;
  text-align: center;
}

/* 秒杀区4个秒杀商品是左浮动的，因此需要清除浮动 */
.hot_goods_content:after {
  content: "";
  clear: both;
  display: block;
}

.hot_goods_content > .hot_goods_content_box > a {
  display: block;
}

.hot_goods_content > .hot_goods_content_box > a > img {
  height: .8rem;
}

.hot_goods_content > .hot_goods_content_box > a > p:nth-child(2) {
  font-size: .16rem;
  color: #d6321c;
  font-weight: bolder;
}

.hot_goods_content > .hot_goods_content_box > a > p:nth-child(3) {
  text-decoration-line: line-through;
  font-size: .15rem;
  color: #666;
}








/* 占屏幕一半的元素 */
.hot_goods_content > .hot_goods_w50 {
  border-radius: .2rem;
  width: 50%;
  height: 3rem;
  position: relative;
  float: left;
  /* border-bottom: 1px solid #e0e0e0; */
}

/* 占屏幕一半宽度的元素，当顺序为奇数时才加右边框 */
.hot_goods_content > .hot_goods_w50:nth-child(odd) {
  /* border-right: 1px solid #e0e0e0; */
}

/* 占屏幕一半的元素中的子元素左绝对定位 */
.hot_goods_content > .hot_goods_w50 > .hot_goods_w50_left {
  position: absolute;
  top: .1rem;
  left: .1rem;
  font-weight: bolder;
}

.hot_goods_content > .hot_goods_w50 > .hot_goods_w50_left > p:last-child {
  font-size: .20rem;
  color: lightslategray;
}

/* 占屏幕一半的元素中的子元素右绝对定位 */
.hot_goods_content > .hot_goods_w50 > .hot_goods_w50_right {
  position: absolute;
  right: .3rem;
  bottom: .6rem;
}

.hot_goods_content > .hot_goods_w50 > .hot_goods_w50_right > img {
  height: 1.5rem;
}



/*
  为您推荐
*/
a{
  color: black;
}

.jd_intro{
  margin-top: .1rem;
  margin-bottom: 1rem;
}

.jd_intro .intro_title{
   text-align: center;
   color: #666;
   position: relative;  
   margin-left: 1rem;
}

.jd_intro .intro_title span{
   background: #f5f5f5;
   padding: .1rem .2rem;
}

.jd_intro .intro_title::before{
   content: '';
   width: 100%;
   height: .1rem;
   background-color: #e0e0e0;
   position: absolute;
   left:.1rem;
   top:50%;
   z-index: -1;

}

.jd_intro .intro_con ul li{
   background: #fff;
   float: left;
   width: 50%;
   margin-bottom: .2rem;
   padding: .1rem;
}

.jd_intro .intro_con ul li:nth-child(2n){
   float: right;
}

.jd_intro .intro_con ul li img{
   width: 98%;
   display: block;
   margin: 0 auto;
   border-radius: .1rem;
}

.jd_intro .intro_con ul li p{
   font-size: .28rem;
   margin: .1rem 0;
}

.jd_intro .intro_con ul li span{
   color: #E9232C;
}

.jd_intro .intro_con ul li div a.pull_right{
   border: 1px solid #e0e0e0;
   font-size: .10rem;
   color: #e0e0e0;
   float: right;
}

/*
  尾部区域
*/
/* .jd_footer{
  width: 100%;
  height: 54px;
  line-height: 54px;
  box-shadow: 0 -2px 2px #ccc;
  color: #fff;
  position: fixed;
  left: 0;
  bottom:0;
  background: #fff;
}

.jd_footer ul li{
  float: left;
  width: 20%;
  text-align: center;
}

.jd_footer ul li a{
  width: 100%;
  display: block;
}

.jd_footer ul li a img{
  width: 70px;
} */

#app .footer {
  position: fixed;
  width: 100%;
  max-width: 750px;
  display: flex;
  bottom: 0;
  background-color: #fff;
}
#app .footer .item {
  width: 100%;
  flex: 1;
  border-top: 1px solid #ddd;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 0.32rem;
}
#app .footer .item.active {
  color: red;
}
#app .footer .item .iconfont {
  font-size: 0.38rem;
}




/* 回到顶部 */
.footer_e {
  position: fixed;
  right: .1rem;
  bottom: 1.5rem;
  width: .5rem;
  height: .5rem;
  opacity: 0.5;
}
